package com.gk.panda.apis.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gk.panda.apis.dto.EventToDoListSearchDto;
import com.gk.panda.apis.entity.eventtodo.dto.EventToDoListDto;
import com.gk.panda.apis.entity.eventtodo.vo.EventToDoCountVo;
import com.gk.panda.pojo.EventTodo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @description: 待办事件
 * @date: 2022/11/3 14:46
 * @version: 1.0
 **/
public interface EventTodoMapper extends BaseMapper<EventTodo> {
    int deleteByPrimaryKey(Integer id);

    int insert(EventTodo record);

    int insertSelective(EventTodo record);

    EventTodo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EventTodo record);

    int updateByPrimaryKey(EventTodo record);

    /**
     * @description: 获取待办事件列表上的数据统计
     * @param: []
     * @return: com.gk.panda.apis.entity.eventtodo.vo.EventToDoCountVo
     * @date: 2022/11/3 16:16
     * @version: 1.0
     *
     * @param dto*/
    EventToDoCountVo getEventToDoCount(@Param("dto") EventToDoListSearchDto dto);

    /**
     * @description: huoqu当前时间中最后一条数据的编号
     * @param: [date]
     * @return: java.lang.String
     * @date: 2022/11/4 11:23
     * @version: 1.0
     **/
    String selectSn(Date date);
}